import dart.*

class BootStrap {

	def init = { servletContext ->
		PlayerGame.count();
//		switch (grails.util.GrailsUtil.environment) {
//		case "development":
//			testPersons()
//			testClassifications()
//			break;
//		}
	}
	def destroy = {
	}
	
	def testPersons = {
		new Person(	name:"Danny", displayName: "Dan The Man",
					primaryColor: "#AFA", secondaryColor: "black").save();
	}
	
	def testClassifications = {
		new Classification(	name: "Sissy", scoreMultiplier:0.5,
							penaltyMultiplier: 0.5 ).save();
		new Classification(	name: "Man", scoreMultiplier:1,
							penaltyMultiplier: 1 ).save();
		new Classification(	name: "Real Man", scoreMultiplier:1.5,
							penaltyMultiplier: 2 ).save();							
	}	
} 